home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.004 / xemacs-1 / xemacs-19.13 / src / m / sparc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-08-26  |  3.7 KB  |  133 lines

  1. /* machine description file for Sun 4 SPARC.
  2.    Copyright (C) 1987, 1994 Free Software Foundation, Inc.
  3.  
  4. This file is part of GNU Emacs.
  5.  
  6. GNU Emacs is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10.  
  11. GNU Emacs is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with GNU Emacs; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20. /* Synched up with: FSF 19.29. */
  21.  
  22. /* The following line tells the configuration script what sort of 
  23.    operating system this machine is likely to run.
  24.    USUAL-OPSYS="note"
  25.  
  26. NOTE-START
  27. Use -opsystem=sunos4 for operating system version 4, and
  28. -opsystem=bsd4-2 for earlier versions.
  29. NOTE-END  */
  30.  
  31. /* XEmacs change */
  32. /* Say this machine is a sparc if we are not generating the Makefiles.
  33.    In that case say we are a SPARC.  Otherwise people who have sparc
  34.    in a path will not be happy. */
  35.  
  36. #ifdef NOT_C_CODE
  37. # define SPARC
  38. #else
  39. # ifndef sparc
  40. #  define sparc
  41. # endif
  42. #endif
  43.  
  44. #ifdef __GNUC__
  45. # define C_OPTIMIZE_SWITCH -O
  46. #else
  47. /* XEmacs change */
  48. # ifdef USE_LCC
  49. #  define C_OPTIMIZE_SWITCH -O4 -Oi
  50. # else
  51.      /* This level of optimization is reported to work.  */
  52. #  define C_OPTIMIZE_SWITCH -O2
  53. # endif
  54. #endif
  55.  
  56. /* Use type int rather than a union, to represent Lisp_Object */
  57.  
  58. #define NO_UNION_TYPE
  59.  
  60. /* XINT must explicitly sign-extend */
  61.  
  62. #define EXPLICIT_SIGN_EXTEND
  63.  
  64. /* Data type of load average, as read out of kmem.  */
  65.  
  66. #define LOAD_AVE_TYPE long
  67.  
  68. /* Convert that into an integer that is 100 for a load average of 1.0  */
  69.  
  70. #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
  71.  
  72. /* Define C_ALLOCA if this machine does not support a true alloca
  73.    and the one written in C should be used instead.
  74.    Define HAVE_ALLOCA to say that the system provides a properly
  75.    working alloca function and it should be used.
  76.    Define neither one if an assembler-language alloca
  77.    in the file alloca.s should be used.  */
  78.  
  79. #define HAVE_ALLOCA
  80. #ifndef NOT_C_CODE
  81. #if __GNUC__ < 2 /* Modern versions of GCC handle alloca directly.  */
  82. #include <alloca.h>
  83. #endif
  84. #endif
  85.  
  86. /* Solaris defines alloca to __builtin_alloca & does not provide a prototype */
  87. #ifdef __SUNPRO_C
  88. #  ifndef NOT_C_CODE
  89. #    include <alloca.h>
  90.      void *__builtin_alloca (unsigned int);
  91. #  endif
  92. #endif
  93.  
  94. /* Must use the system's termcap, if we use any termcap.
  95.    It does special things.  */
  96.  
  97. #ifndef TERMINFO
  98. #define LIBS_TERMCAP -ltermcap
  99. #endif
  100.  
  101. /* Mask for address bits within a memory segment */
  102.  
  103. #define SEGMENT_MASK (SEGSIZ - 1)
  104.  
  105. /* Arrange to link with sun windows, if requested.  */
  106. /* For details on emacstool and sunfns, see etc/SUN-SUPPORT */
  107. /* These programs require Sun UNIX 4.2 Release 3.2 or greater */
  108.  
  109. #ifdef HAVE_SUN_WINDOWS
  110. #define OTHER_FILES  ${etcdir}emacstool
  111. #define LIBS_MACHINE -lsuntool -lsunwindow -lpixrect
  112. #define OBJECTS_MACHINE sunfns.o
  113. #define SYMS_MACHINE syms_of_sunfns ()
  114. #ifndef PURESIZE
  115. #define PURESIZE 130000
  116. #endif
  117. #endif
  118.  
  119. #ifndef __NetBSD__
  120. /* This really belongs in s/sun.h.  */
  121.  
  122. /* Say that the text segment of a.out includes the header;
  123.    the header actually occupies the first few bytes of the text segment
  124.    and is counted in hdr.a_text.  */
  125.  
  126. #define A_TEXT_OFFSET(HDR) sizeof (HDR)
  127.  
  128. /* This is the offset of the executable's text, from the start of the file.  */
  129.  
  130. #define A_TEXT_SEEK(HDR) (N_TXTOFF (hdr) + sizeof (hdr))
  131.  
  132. #endif /* __NetBSD__ */
  133.